package com.geek.javase.ch10.jformdesigntest.japanel;

/*
 *@author wangpeng
 *2025/10/19 21:14
 *@description TODO
 */
public class UserService {
    //强关联
    private UserDao userDao = new UserDao();
    //登录
    public User login(String username, String password) {
        User user = userDao.selectOne(username,password);
        return user;
    }
    //注册
    public boolean register(User user) {
        boolean flag = userDao.insert(user);
        return flag;
    }

}
